how to hide the properties of an object